package com.chenqi.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @description:
 * @program: ardaicommunity
 * @author: ChenQi
 * @create: 2021-03-2021/3/8-08-33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("ums_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("username")
    private String username;
    private String sign;
    private String alias;
    private String password;
    private String avatar;
    private String email;
    private String mobile;
    private Integer score;
    private String token;
    private String bio;
    private Integer active;
    private Integer status;
    private Integer roleId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;
    @TableField("modify_time")
    private Date modifyTime;
    @TableField("post_count")
    private Integer postCount;
    @TableField("follower_count")
    private Integer followerCount;
}
